package com.cdd.agent.api.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cdd.common.domain.entity.AppUserCollection;
import com.cdd.agent.api.mapper.AppUserCollectionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author cdd
 * @date 2025-08-08 14:35
 */
@Service
public class AppUserCollectionService {

    @Resource
    private AppUserCollectionMapper baseMapper;

    public AppUserCollection findByUserId(Integer userId) {
        return baseMapper.selectOne(
                new LambdaQueryWrapper<AppUserCollection>()
                        .eq(AppUserCollection::getUserid, userId)
        );
    }
}
